import request from "@/utils/request"
// export const getAuxil =async(_data: any)=>{
//     const data=await request.get('/system/customer/findCustomerByType?sobId=1',{data:_data})   
//     return data;
// }
const getAuxil = async () => {
  const data = await request.get('/system/customer/findCustomerByType?businessType=1&sobId=1');
  return data
}
const addAuxil = async (_data: any) => {

  const data = await request.post('/system/customer/addCustomer', {data: _data});
  console.log(1111,data);
  return data
}
const editAuxil = async () => {
  const data = await request.post('/system/customer/updateCustomerById');
  console.log(data);

  return data
}
const delAuxil = async (cusId: any) => {
  const data = await request.post(`/system/customer/delCustomerById/${cusId}`);
  console.log(data);

  return data
}
export {
  getAuxil,
  addAuxil,
  editAuxil,
  delAuxil
}
